local Class = require('lua.lang.Class')
local OutputStream = require('lua.io.OutputStream')

--- @class PrintOutputStream : OutputStream
local PrintOutputStream = Class {}

--- @return PrintOutputStream
function PrintOutputStream:new()
	--- @type PrintOutputStream
	local o = {}
	return setmetatable(o, PrintOutputStream)
end

--- @param i number
--- @return void
function PrintOutputStream:write(i)
	io.write(string.char(i))
end

--- @return void
function PrintOutputStream:close()
end

return PrintOutputStream